<script>
import {ref} from "vue";

export default {
  setup(props, context) {
    let info = ref("Hello, Vue!")

    context.expose(
        {
          info
        }
    )

    return {
      info
    }
  }
}


</script>

<template>
  <h2>这是子组件</h2>
</template>

<style scoped>

</style>